package com.coocaa.x.app.hall.list;

import android.content.Intent;
import android.os.Bundle;

import com.coocaa.x.app.hall.HallBaseActivity;
import com.coocaa.x.app.hall.main.ui.PageLayout;

/**
 * Created by luwei on 15-6-16.
 */
public class HallListActivity extends HallBaseActivity {
    private String listName = "";
    private String listId = "";
    private PageLayout layout = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        listId = getIntent().getStringExtra("start_applist");
        layout = new PageLayout(this, PageLayout.TitleType.LIST_PAGE);
        layout.setListTitleId(listId);
        layout.refreshLayout("");
        setContentView(layout);
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (layout != null)
            layout.onDestroy();
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (layout != null) {
            layout.onResume();
        }
    }
}
